<?php

namespace app\admin\validate;
use think\validate;
class Banner extends validate
{


    protected $rule =   [

        'title'  => ['require',  'unique'=>'banner'],
        'path'  => ['require',],

    ];

    protected $message  =   [

        'title.require'     => ['code' => 4011, 'msg' => '名称不能为空'],
        'title.unique'      => ['code' => 4012, 'msg' => '名称已经存在'],
        'path.require'      => ['code' => 4012, 'msg' => '路由必填'],

    ];

}